<!doctype html>
<html class="no-js" lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>新冠疫情统计系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" type="image/png" th:href="@{/assets/images/icon/favicon.ico}">
    <link rel="stylesheet" th:href="@{/assets/css/bootstrap.min.css}">
    <link rel="stylesheet" th:href="@{/assets/css/font-awesome.min.css}">
    <link rel="stylesheet" th:href="@{/assets/css/themify-icons.css}">
    <link rel="stylesheet" th:href="@{/assets/css/metisMenu.css}">
    <link rel="stylesheet" th:href="@{/assets/css/owl.carousel.min.css}">
    <link rel="stylesheet" th:href="@{/assets/css/slicknav.min.css}">
    <link rel="stylesheet" th:href="@{/assets/css/export.css}" type="text/css" media="all" />
    <link rel="stylesheet" th:href="@{/assets/css/typography.css}">
    <link rel="stylesheet" th:href="@{/assets/css/default-css.css}">
    <link rel="stylesheet" th:href="@{/assets/css/styles.css}">
    <link rel="stylesheet" th:href="@{/assets/css/responsive.css}">
    <script th:src="@{/assets/js/vendor/modernizr-2.8.3.min.js}"></script>
</head>

<body>
    <!--[if lt IE 8]>
            <p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a th:href="@{http://browsehappy.com/}">upgrade your browser</a> to improve your experience.</p>
        <![endif]-->

    <div id="preloader">
        <div class="loader"></div>
    </div>
        <div class="main-content">

            <div class="header-area">
                <div class="row align-items-center">

                    <div class="col-md-6 col-sm-8 clearfix">

                        <div class="search-box pull-left">
                            <form th:action="@{/showall}" method="get">
                                <input type="text" name="country" th:placeholder="输入国家名称搜索" required>
                                <input type="hidden" name="page" th:value="1">
                                <i class="ti-search"></i>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
            <div class="page-title-area">
                <div class="row align-items-center">
                    <div class="col-sm-6">
                        <div class="breadcrumbs-area clearfix">
                            <h4 class="page-title pull-left">全球新冠疫情统计(<span th:text="${time}"></span>)</h4>

                        </div>
                    </div>

<!--                    <div class="col-sm-6 clearfix">-->
<!--                        <div class="user-profile pull-right">-->
<!--                            <img class="avatar user-thumb" th:src="@{/assets/images/author/gan.gif}" alt="avatar">-->
<!--                        </div>-->
<!--                    </div>-->
                </div>
            </div>
            <div class="main-content-inner">

                <div class="card mt-5">

                    <div class="card-body">
                        <div class=" pagination_area  pull-right ">
                            <ul>
                                <li><a th:href="@{'/showall?'+'country='+${country}+'&page=1'}">首页</a></li>
                                <li><a th:href="@{'/showall?'+'country='+${country}+'&page='+${currentpage -1}}"><i class="fa fa-chevron-left"></i></a></li>
                                <li><a th:text="${currentpage}"></a></li>
                                <li><a th:href="@{'/showall?'+'country='+${country}+'&page='+${currentpage+1}}"><i class="fa fa-chevron-right"></i></a></li>
                                <li><a th:href="@{'/showall?'+'country='+${country}+'&page='+${lastpage}}">尾页</a></li>
                            </ul>
                        </div>
                        <br>
                        <div>
                            <h4 class="header-title" >各州/省新冠总人数</h4>
                        </div>
                        <div id="ambarchart1"></div>
                        <h4 class="header-title" >各州/省新冠新增人数</h4>
                        <div id="amlinechart4"></div>

                        <div class="table-responsive">
                            <table class="dbkit-table">
                                <tbody>
                                    <tr class="heading-td">
                                        <td><h4>洲/省</h4></td>
                                        <td><h4>国家</h4></td>
                                        <td><h4>新冠总数</h4></td>
                                        <td><h4>新增数量(每日)</h4></td>
                                    </tr>
                                    <p id="test" hidden th:text="${states}"></p>
                                    <tr th:each="regionStates:${RegionStatesLists}">
                                        <td th:text="${regionStates.getState() }"></td>
                                        <td th:text="${regionStates.getCountry() }"></td>
                                        <td th:text="${regionStates.getLatestTotalCases() }"></td>
                                        <td th:text="${regionStates.getDiffFromPrevDay() }"></td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="pagination_area pull-right mt-5">
                            <ul>
                                <li><a th:href="@{'/showall?'+'country='+${country}+'&page=1'}">首页</a></li>
                                <li><a th:href="@{'/showall?'+'country='+${country}+'&page='+${currentpage -1}}"><i class="fa fa-chevron-left"></i></a></li>
                                <li><a th:text="${currentpage}"></a></li>
                                <li><a th:href="@{'/showall?'+'country='+${country}+'&page='+${currentpage+1}}"><i class="fa fa-chevron-right"></i></a></li>
                                <li><a th:href="@{'/showall?'+'country='+${country}+'&page='+${lastpage}}">尾页</a></li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
            <footer>
                <div class="footer-area">
                    <p>Copyright &copy; 2020.版权所有-李丁成.</p>
                </div>
            </footer>
    </div>
    <script th:src="@{/assets/js/vendor/jquery-2.2.4.min.js}"></script>
    <script th:src="@{/assets/js/popper.min.js}"></script>
    <script th:src="@{/assets/js/bootstrap.min.js}"></script>
    <script th:src="@{/assets/js/owl.carousel.min.js}"></script>
    <script th:src="@{/assets/js/metisMenu.min.js}"></script>
    <script th:src="@{/assets/js/jquery.slimscroll.min.js}"></script>
    <script th:src="@{/assets/js/jquery.slicknav.min.js}"></script>
    <script th:src="@{/assets/js/Chart.min.js}"></script>
    <script th:src="@{/assets/js/highcharts.js}"></script>
    <script th:src="@{/assets/js/zingchart.min.js}"></script>
    <script>
    zingchart.MODULESDIR = "assets/js/modules/";
    ZC.LICENSE = ["569d52cefae586f634c54f86dc99e6a9", "ee6b7db5b51705a13dc2339db3edaf6d"];
    </script>
    <!-- start amchart js -->
    <script th:src="@{https://www.amcharts.com/lib/3/amcharts.js}"></script>
    <script th:src="@{https://www.amcharts.com/lib/3/serial.js}"></script>
    <script th:src="@{/assets/css/export.min.js}"></script>
    <script th:src="@{https://www.amcharts.com/lib/3/themes/light.js}"></script>
    <script th:src="@{/assets/js/bar-chart.js}"></script>
    <script th:src="@{/assets/js/line-chart.js}"></script>
    <script th:src="@{/assets/js/plugins.js}"></script>
    <script th:src="@{/assets/js/scripts.js}"></script>
</body>
</html>
